<?php
/**
 * 粉丝表验证器
 */

namespace app\common\validate;

class UserValidate extends Validate
{
    protected $rule = [
            'user_code|编号' => 'require',
    'username|姓名' => 'require',
    'qq|qq' => 'require',
    'mobile|手机号' => 'require',
    'pid|所属站长id' => 'require',
    're_id|推荐人id' => 'require',
    'bid|银行名称' => 'require',
    'bank_name|开户姓名' => 'require',
    'bank_code|银行卡号' => 'require',
    'status|1 正常 0待审核 -1驳回 -2冻结 -3隐藏' => 'require',

    ];

    protected $message = [
            'user_code.require' => '编号不能为空',
    'username.require' => '姓名不能为空',
    'qq.require' => 'qq不能为空',
    'mobile.require' => '手机号不能为空',
    'pid.require' => '所属站长id不能为空',
    're_id.require' => '推荐人id不能为空',
    'bid.require' => '银行名称不能为空',
    'bank_name.require' => '开户姓名不能为空',
    'bank_code.require' => '银行卡号不能为空',
    'status.require' => '1 正常 0待审核 -1驳回 -2冻结 -3隐藏不能为空',

    ];

    protected $scene = [
        'add'  => ['user_code','username','qq','mobile','pid','re_id','bid','bank_name','bank_code','status',],
'edit' => ['user_code','username','qq','mobile','pid','re_id','bid','bank_name','bank_code','status',],

    ];

    

}
